package com.lx.perferred.mall.admin.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author lX
 * @version JDK 8
 * @className UmsAdmin (此处以class为例)
 * @date 2024/11/30
 * @description admin用户实体类
 */
public class UmsAdmin {

  private static final long serialVersionUID = 1L;


  private Long id;
  @ApiModelProperty(value = "用户名")

  private String username;
  @ApiModelProperty(value = "密码")

  private String password;

  @ApiModelProperty(value = "头像")
  private String icon;

  @ApiModelProperty(value = "邮箱")
  private String email;

  @ApiModelProperty(value = "昵称")
  private String nickName;

  @ApiModelProperty(value = "备注信息")
  private String note;

  @ApiModelProperty(value = "创建时间")
  private Date createTime;

  @ApiModelProperty(value = "最后登录时间")
  private Date loginTime;

  @ApiModelProperty(value = "帐号启用状态：0->禁用；1->启用")
  private Integer status;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getLoginTime() {
    return loginTime;
  }

  public void setLoginTime(Date loginTime) {
    this.loginTime = loginTime;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "UmsAdmin{" +
      "id=" + id +
      ", username='" + username + '\'' +
      ", password='" + password + '\'' +
      ", icon='" + icon + '\'' +
      ", email='" + email + '\'' +
      ", nickName='" + nickName + '\'' +
      ", note='" + note + '\'' +
      ", createTime=" + createTime +
      ", loginTime=" + loginTime +
      ", status=" + status +
      '}';
  }
}
